package cn.myzqu.sign.project.server.dao;

import cn.myzqu.sign.project.common.vo.ProjectInfoVo;
import cn.myzqu.sign.project.server.entity.ProjectInfo;
import cn.myzqu.sign.project.common.input.ProjectStaffQueryInput;
import cn.myzqu.sign.project.common.input.ProjectQueryInput;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: 的川
 * @Date: 2019/3/5 16:34
 */
public interface ProjectMapper extends BaseMapper<ProjectInfo>{

    /**
     * 综合搜索
     * @param projectVo
     * @return
     */
    List<Map> searchProject(@Param("projectInfo") ProjectQueryInput projectVo);

    /**
     * 运营员获取管理的project
     * @param params
     * @return
     */
    List<Map> getProjectByStaff(Map params);

    List<ProjectInfoVo> searchMyProject(@Param("queryVo") ProjectStaffQueryInput projectStaffQueryInput);
}
